package com.jy.wms.dao;

import com.jy.wms.common.base.BaseDao;
import com.jy.wms.pojo.*;
import org.apache.ibatis.annotations.Param;

import javax.swing.*;
import java.util.List;
import java.util.Map;

public interface WmsReportsMapper extends BaseDao<WmsHarvestDaily> {
     /**
      * 查询收货日报表
      */
    public List<WmsHarvestDaily> baseHarvestPage(@Param("WmsHarvestDaily") WmsHarvestDaily entity);
    /**
     * 收货日报表导出
     * @param idList
     * @return
     */
    public List<WmsHarvestDaily> getOutPutHarvest(@Param("list") List<String> idList, @Param("Map") Map map);

    /**
     * 上架日报表
     * @param entity
     * @return
     */
    public List<WmsShelvesDailies> baseWmsShelvesDailiesPage(@Param("WmsShelvesDailies") WmsShelvesDailies entity);

    /**
     * 上架日报表导出
     * @param idList
     * @return
     */
    public List<WmsShelvesDailies> getOutPutShelves(@Param("list") List<String> idList, @Param("Map") Map map);

    /**
     * 货品库存总数量
     * @return
     */
    public List<WmsStock> quantity();

    /**
     * 库存结存
     * @param list
     * @return
     */
    public Integer baseInsertShelves(@Param("list") List<WmsGoodsBalance> list);

    /**
     * 查询上个月库存
     */
    public WmsGoodsBalance syStock(@Param("hpid") String hpid ,@Param("n") String n,@Param("y") String y);

    /**
     * 进出存合并报表查询
     */

    public List<WmsOutStock> outStock(@Param("WmsOutStock") WmsOutStock entity);

    //根据月份 查询byjc
    public WmsGoodsBalance byjcselect(@Param("n")String n, @Param("y") String y,@Param("hpid") String hpid);

    /**
     * 进出存合并报表导出
     * @param idList
     * @return
     */
    public List<WmsOutStock> getoutStock(@Param("list") List<String> idList, @Param("Map") Map map);

    /**
     * 出库日报表分页查询
     */
    public List<Wmslibrary> baselibraryPage(@Param("Wmslibrary") Wmslibrary entity);

    /**
     * 出库日报表导出
     * @param idList
     * @return
     */
    public List<Wmslibrary> getoutlibrary(@Param("list") List<String> idList, @Param("Map") Map map);

    /**
     * 货品出货量
     */
    public List<WmsPicking> shipmentGoods(@Param("WmsPicking") WmsPicking entity);

    /**
     * 库存报表查询
     */
   public List<WmsStockReport> getstock(@Param("WmsStockReport") WmsStockReport entity );

    /**
     * 库存报表导出
     * @param idList
     * @return
     */
    public List<WmsStockReport> getstockout(@Param("list") List<String> idList, @Param("Map") Map map);
}

